home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / arch / mips / include / asm / seccomp.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-09-09  |  898 b   |  37 lines

  1. #ifndef __ASM_SECCOMP_H
  2.  
  3. #include <linux/unistd.h>
  4.  
  5. #define __NR_seccomp_read __NR_read
  6. #define __NR_seccomp_write __NR_write
  7. #define __NR_seccomp_exit __NR_exit
  8. #define __NR_seccomp_sigreturn __NR_rt_sigreturn
  9.  
  10. /*
  11.  * Kludge alert:
  12.  *
  13.  * The generic seccomp code currently allows only a single compat ABI.  Until
  14.  * this is fixed we priorize O32 as the compat ABI over N32.
  15.  */
  16. #ifdef CONFIG_MIPS32_O32
  17.  
  18. #define TIF_32BIT TIF_32BIT_REGS
  19.  
  20. #define __NR_seccomp_read_32        4003
  21. #define __NR_seccomp_write_32        4004
  22. #define __NR_seccomp_exit_32        4001
  23. #define __NR_seccomp_sigreturn_32    4193    /* rt_sigreturn */
  24.  
  25. #elif defined(CONFIG_MIPS32_N32)
  26.  
  27. #define TIF_32BIT _TIF_32BIT_ADDR
  28.  
  29. #define __NR_seccomp_read_32        6000
  30. #define __NR_seccomp_write_32        6001
  31. #define __NR_seccomp_exit_32        6058
  32. #define __NR_seccomp_sigreturn_32    6211    /* rt_sigreturn */
  33.  
  34. #endif /* CONFIG_MIPS32_O32 */
  35.  
  36. #endif /* __ASM_SECCOMP_H */
  37.